<!DOCTYPE html>
<html>

    <head>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title>后台 - 首页</title>
        <meta name="keywords" content="">
        <meta name="description" content="">

        <link rel="shortcut icon" href="favicon.ico">
        <link href="__PUBLIC__/Admin/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
        <link href="__PUBLIC__/Admin/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
        <link href="__PUBLIC__/Admin/css/plugins/iCheck/custom.css" rel="stylesheet">
        
        <link href="__PUBLIC__/Admin/css/style.min862f.css?v=4.1.0" rel="stylesheet">
        <style>
        .list ul{ border:1px #d6e9c6 solid;  overflow:hidden;border-bottom:none; border-radius: 5px;}
        .list ul li{ border-bottom:1px #d6e9c6 solid;zoom:1; line-height:30px; color:#777;padding: 3px 5px; display: block;}
        .list ul li span{ display:block; text-align:right; margin-left:0.6em; margin-right:5px; float:left; color:#468847; height: 100%; font-weight: bold}
        .list ul li:hover{background:#EEFFFF;}
        .list em{color: red;}
        </style>
    </head>

    <body class="gray-bg">
        <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-success pull-right">今天</span>
                        <h5>平台输赢</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.today_ying}</h1>
                        <div class="stat-percent font-bold text-success"> <i class="fa fa-bolt"></i>
                        </div>
                        <small>收入</small>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-info pull-right">最近一个月</span>
                        <h5>平台输赢</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.all_ying}</h1>
                        <div class="stat-percent font-bold text-info"><i class="fa fa-level-up"></i>
                        </div>
                        <small>总收入</small>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-primary pull-right">今天</span>
                        <h5>新增用户</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.today_user}</h1>
                        <div class="stat-percent font-bold text-navy"> <i class="fa fa-level-up"></i>
                        </div>
                        <small>新增</small>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-danger pull-right">最近一个月</span>
                        <h5>新增用户</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.month_user}</h1>
                        <div class="stat-percent font-bold text-danger"><i class="fa fa-level-up"></i>
                        </div>
                        <small>新增</small>
                    </div>
                </div>
            </div>
        </div>
           <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-success pull-right">今天</span>
                        <h5>上分</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.today_addfen}</h1>
                        <div class="stat-percent font-bold text-success"> <i class="fa fa-bolt"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-info pull-right">今天</span>
                        <h5>下分</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.today_xiafen}</h1>
                        <div class="stat-percent font-bold text-info"><i class="fa fa-level-up"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-primary pull-right">总上分</span>
                        <h5>总上分</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.all_fenadd}</h1>
                        <div class="stat-percent font-bold text-navy"> <i class="fa fa-level-up"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <span class="label label-danger pull-right">总下分</span>
                        <h5>总下分</h5>
                    </div>
                    <div class="ibox-content">
                        <h1 class="no-margins">{$data.all_fenxia}</h1>
                        <div class="stat-percent font-bold text-danger"><i class="fa fa-level-up"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="row">
            <div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>注意别直接发链接推广</h5>
                        <h5>请勿泄露后台信息</h5>
                        <h5>请勿泄露后台信息</h5>
                    </div>
                  
                    </div>
                </div>
            </div>

              <div class="col-sm-4">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>在线会员</h5>
                    </div>
                    <div class="ibox-content list">
                         <table class="table table-striped table-hover table-bordered" style="width:auto;overflow:auto;display:inline-block;">
                            <thead>
                                <tr>
                                    <th>头像</th>
                                    <th>昵称</th>
                                    <th>用户号</th>
                                    <th>剩余点数</th>
                                </tr>
                            </thead>
                            <tbody>
							
                                <if condition="!$online_user">
                                    <tr>
                                        <td colspan="4">暂无在线用户</td>
                                    </tr>
                                <else/>
                                    <volist name="online_user" id="vo">
                                    <tr>
                                        <td width="60"><img src="{$vo.headimgurl}"/><if condition="$vo.is_robot eq '1'"><font color="red">(假)</font></if></td>
                                        <td width="100">{$vo.nickname}</td>
                                        <td width="100">{$vo.username}</td>
                                        <td width="100" style="text-align: center;font-weight: 700;">{$vo.points}</td>
                                    </tr>
                                </volist>
                                </if>
                                
                            </tbody>
                        </table>
                             
                    </div>
                </div>
            </div>
         
            



             
        </div>
        <script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
        <script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
        <script src="__PUBLIC__/Admin/js/content.min.js?v=1.0.0"></script>
        <script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
        <script src="__PUBLIC__/Common/layer/layer.js"></script>
        <script>
            $(function(){
                $('#signform').ajaxForm({
                    beforeSubmit: checkForm,
                    success: complete, 
                    dataType: 'json'
                });
                function checkForm(){
                    if( '' == $.trim($('#gonggao').val())){
                        layer.alert('输入公告内容', {icon: 5}, function(index){
                        layer.close(index);
                        $('#gonggao').focus(); 
                        });
                        return false;
                    }
                }
                function complete(data){
                    if(data.status==1){
                        $('.btn-primary').attr('disabled','disabled');
                        layer.msg(data.info, function(index){
                            layer.close(index);
                            window.location.href=data.url;
                        });
                    }else{
                        layer.msg(data.info);
                        return false;   
                    }
                }

               $('.s_btn1').click(function(){
                   $('.s_show1').html('加载中...');
                   $.get('/Admin/index/short_url?type=1',function(res){
                        alert(res);
                       $('.s_show1').html(res);
                   })




                })

                $('.s_btn2').click(function(){
                    $('.s_show2').html('加载中...');
                    $.get('/Admin/index/short_url?type=2',function(res){
                        alert(res);
                        $('.s_show2').html(res);
                    })
                })

                $('.s_btn3').click(function(){
                    $('.s_show3').html('加载中...');
                    $.get('/Admin/index/short_url?type=3',function(res){
                        alert(res);
                        $('.s_show3').html(res);
                    })
                })


            });
        </script>
    </body>

</html>